Tech Mahindra Interview Question

Algorithm for binary sort.