All Test Cases Not Passing

Hey, please help me with this code, one of the test cases is not passing. LINK: https://ide.codingblocks.com/s/188661

Hi @vmanav
Your code is failing for that test case when difference between two character is > 9. Then you are trying to save number of length 2 in a single place. All you need to do is that handle the case for k>9. I have made changes in your code but first try it yourself.

Here is your corrected code :
https://ide.codingblocks.com/s/188665

If your doubt is clear then mark it as resolved.