All cases are not pssing

@divyam_13,
Your code fails here,

Input
4
9 9 9 9
5
9 9 9 9 9

how can i solve this issue ?

@divyam_13,
Make a larger result array, and make sure you take care of the last carry value.

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.