Booking.com interview question

Two coding questions, two multiple choices