Time Complexity Too Much


#1

My solution with complexity O(n^2) worked which should not happen moderator’s should put time constraint too!!