public ArrayList<ArrayList<Integer>> permuteUnique(ArrayList<Integer> nums) {
        // write your code here
        if (nums == null)
            return res;
        dfs(nums, 0);
        return res;
    }