Booking.com interview question

Simple coding question.