Help with first submission of ATM problem


I am trying for the first time to submit a code. But I am getting error ( runtime error NZEC ).

My solution works for given input cases while running it using custom input. The error happens while submitting it.

Appreciate any help. Thanks.