Sorting In linear time1

Why one test case failed???