Dunzo | OA | Travelling in a maze & Maximum frequency
Q1: Traveling in a maze

image
image

Q2: Maximum frequency

image

Example
6
a b a s q n
1 2
1 3
2 6
3 4
3 5
2
2 3
2 6

Answer
a
b

Didn't able to solve this. Please share your approach.

Comments (5)