Doubt doubt doubt

https://ide.codingblocks.com/s/483870 --> is it correct or not ??

hello @parth_tyagi

if arr[i] is ‘0’ then simply return from here itslef becuase thats an invalid arrangement

hello @parth_tyagi
If you take input as 0010 it is showing A and J as output which is wrong because 0 is not a valid input , correct output should be J only , so you need to add additional check for case like 10 or 20 and not 30 or 40 because that would be a invalid number i.e if arr[i+1]==‘0’ before going to single digit generation.
hope this will help , you can check my code https://ide.codingblocks.com/s/617967 .