Sort in linear time,,,,

test case 2 is showing run time error