Booking.com Interview Question

Problem solving algorithms, some trivial tree parsing exercises.