Correct output in custom input, but wrong output during submission

Correct output in custom input, but wrong output during submission.
67 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
my program giving output 0 1 2 3 in custom test
and output 0 in submission

Click here to start solving coding interview questions