Amazon interview question

Use binary search to optimize package delivery time