For example:
If the input is 550 the answer is 0
If the input is 32847923846 the answer is 2
The length of the input is variable.
I have tried arraylist and buffered reader class but i am not being able to get because the input's length is variable