HighRadius interview question

Simple DFS based traversal question