Frage im Vorstellungsgespräch bei AKUNA CAPITAL

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