Bloomberg Interview Question

Algorithm questions of sorting