https://www.codechef.com/problems/DIGARR?tab=submissions

why we are using string to take number input not array?

In the question it is mentioned that the number N is given in the string format, so that’s the reason we took input(N) as string.