completed twosum, add2nums, valid palindrme