Time complexity of this code which according to me is O(nlogn) Can anyone please tell me the time complexity of the code