Amazon Interview Question

binary search and sorting on array