Booking.com Interview Question

Simple coding question.