Domanda di colloquio di IDFC FIRST Bank

Coding question . They asked bfs with queue