# Simple DFS problem. Expected to run the code. You can use AI for compile error, writing test cases, brainstorm around the solution or missing edge case. You own the core login. You can't ask AI to solve the question for you.