HCLTech interview question

Asked about algorithms and sorting