Increasing Decreasing Sequence


according to me my code is correct plz check and revert,

you have iterate the array if element is greater than it’s next element then you increase i (means move ahead) and also when element is less than it’s next element the you also increament i
int this way you finally reach at end so alway print true

try to think once more
if not done yet then ask to me again