Not understood the question

here in the question it is asking for string input but in example integer input is taken can you explain the question properly

Hi @ketushubham098
Here in this question for example you have to take 123 as a input in string but then you have to display it as an integer Value.
We traverse the string from left to right , extract the character but subtracting the ASCII value of ‘0’ from it.
Hope you will get it now if still face any issue please let me know.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.