public List<List<String>> partition(String s) {
        // write your code here
        if (s.length() == 0)
            return ans;
        ArrayList<String> temp = new ArrayList<>();
        helper(0, s, temp);
        return ans;

    }