Domanda di colloquio di Compass

A fairly difficult graph traversal problem, not ideal for JS