Please help…Custom Input Works as expected but I get NZEC error array index out of bounds on submitting
You’re most likely just trying to access a negative indexed element in an array. Try debugging using different testcases, but design them smartly by analyzing your code.
There’s a nice post describing debugging process on discuss - Tutorial - How to debug an NZEC error?