I have no idea how to solve the question

first i thought of using character arrays then i had no clue, then using the integer array i tried to compare the numbers from the first place but i cant compare them when they are 2 and 3 digit numbers how should i compare them,

what logic is to be used?

Hi Arya,
refer this --> https://ide.codingblocks.com/s/619076

hi… i hope ur doubt is cleared??

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.