Getting NZEC in this problem

My code is here for ZUBREACH and I am always getting NZEC may I know why?
please tell me
question CodeChef: Practical coding for everyone

According to the constraints given, the length of the sequence can be 0 as well. Your code gives NZEC in that case.