Third test casing is failing please suggest me what i m doing wroe

@sarthaksingh line no 13 sort function will work upto n not n-1
sort(arr,arr+n);