CompetitiveProgramming Here is a problem I got in a Competitive Programming situation that I solved using a recursive Depth first search function