Airbnb interview question

Combination problem