Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use DFS.
Traverse the path of the ball downwards until you reach the bottom or get stuck.
Solve with full IDE support and test cases