Pergunta de entrevista da empresa Booking.com

Problem solving algorithms, some trivial tree parsing exercises.