Airbnb Interview Question

A question that required array/ sorting/ binary search