Bloomberg Interview Question

general questions on algorithms and sorting