Accenture interview question

Sorting the Array using binary search