The code is not passing all the testcases


please help

Hey
Your code gives wrong answer for cases 559, 955
Try to correct your code for these,
You’re storing the number inside the array in a reverse manner, so you need to check that if the last element of the array is 9, you have to keep it unchanged.