Help me in solving CARRAYMCQ1 problem

My issue

How and why not use a[i]<=a[i+1]

Learning course: Arrays using C
Problem Link: CodeChef: Practical coding for everyone

@chirayu2003tri
Yes this is also correct but u have to loop till i<n-1 ,cozz for i=n-1 a[i+1] will give your run time error.