2. Add Two Numbers
The idea of solving the problem is relatively simple, just pay attention to the carry to the high position.
The better solution is to put all possible situations into the while, and use the OR operation to judge, thereby eliminating a lot of redundant writing. while(l1 || l2 || carry);