Problem in approach of counting sort

TESTCASE # 1 : wrong-answer (Time: 0.09 s)
I am getting this as output while submitting, meanwhile i am getting right answer while trying myself .