Sorted array problem

why me code is passing only two test cases

@dreamerekta line 9
do a[0]<=a[1]