HCLTech Interview Question

Asked about algorithms and sorting