Pergunta de entrevista da empresa HighRadius

Simple DFS based traversal question