public ArrayList<ArrayList<Integer>> getPath(TreeNode root) {
        if (root == null)
            return ans;
        ArrayList<Integer> arr = new ArrayList<>();
        helper(root, arr);
        return ans;
    }