Pregunta de entrevista de Booking.com

Easy - Medium open ended coding question.