Airbnb interview question

General algorithmic questions involving number sequences.