Adding hasPathSum and correcting the getHeight to maxDepth.