Pls help me to debug the code

hi @Senjuti256 image
this should be a[0] <= a[1]

why should the equality be there bcoz if 2 elements are equal thn how can we claim that the array is sorted?

@Senjuti256 1 2 2 3
this array is also sorted.
sorted doesnt mean strictly increasing.