Samsung Electronics Interview Question

Mainly focus on Recursion, BFS, DFS