Solve meeting-room scheduling and shortest paths | Google Interview Question