Booking Holdings interview question

Graph traversal problem and some theory