proteanTecs interview question

java, spring and a DFS question