Query Regarding STBARR

I am unable to find counter example for my solution. please help.

My Submission: Solution: 55052248 | CodeChef

Test case :
2
2 1

Correct output :
2

1 for making cyclic shift on [1,2] sub-array ( 1,2 are indexes ) and 1 for making them equal .

1 Like