Pergunta de entrevista da empresa Booking Holdings

Graph traversal problem and some theory