elegant version of addTwoNum problem