finished getNextRightNode and sumOfAllNumsFormedFromRootToLeafPaths