Help me in solving SORTARR1 problem

My issue

why this wrong?

Learning course: Sorting using C++
Problem Link: Rearrange Code Practice Problem in - CodeChef