KaHa interview question

Sorting questions and time complexity