Airbnb Interview Question

Combination problem