rideOS Interview Question

A problem based on graph algorithms (BFS, DFS).