Faling test case 1
for this input it is giving false but ans is true
5
2 2 2 2 2
at line no 9
correct condition is
if(arr[n]>=arr[n-1]){
return true;
}
if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with
and don’t forgot to mark doubt as resolved