Amazon interview question

merge sort, binary search, 2d matrix