Airbnb interview question

A question that required array/ sorting/ binary search