Doubt in RECNDROT link: https://www.codechef.com/problems/RECNDROT

Shouldnt the max value of M be 2 for all cases ?
if not can you give an example where it is greater than two .
m=2 will also be there if the values in array go up then have a sudden drop(below initial point) and gradually again increase upto the initial point .