Broadcom interview question

Sorting algorthm and dsa question on binary search