Avi Solar interview question

Sorting and time complexity based questions