I am not able to submit my code . After clicking submit it is not showing anything.
Unable to submit my code
hey @7nishit you are getting TLE, and it happens in case when two adjacent numbers are equal in that case it wont go into any condition and loop forever, other than that your code if fine.