Pergunta de entrevista da empresa Airbnb

General algorithmic questions involving number sequences.