Pergunta de entrevista da empresa Booking.com

Develop algorithms and talk about its efficiency using Big O notation.