ED updated;
hasPathSum in binary tree