Pregunta de entrevista de Booking.com

Two coding questions, two multiple choices