Chewbacca number problem doubt for approach

the question is quite understandable but cant find the approach easily my doubt is without involving the string shall we solve the question or not or with the help of string how do we approach

  1. for starting index we have consider the possibilties that after reversing the digit it should not be zero but aaesa bhi hoosakta hein ki user hii 0 daalde first place prr then

u can do it like this without using strings https://ide.codingblocks.com/s/626616

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.