Accenture Interview Question

Sorting the Array using binary search