Short C++ Recursive Solution

`if(A == NULL) return B;
if(B == NULL) return A;
ListNode *res = new ListNode((A->val + B->val)%10);
res->next = addTwoNumbers(A->next, B->next);
if(A->val + B->val > 9){
    ListNode *carry = new ListNode(1);
    if(res->next == NULL) res->next = carry;
    else{
        res->next = addTwoNumbers(res->next, carry);  
    } 
}
return res;`
Click here to start solving coding interview questions