C++ solution to Leetcode 2. Adds Two Numbers