Domanda di colloquio di AKUNA CAPITAL

A graph question which was solved using DFS and design elevator system