import java.util.*; public class Solution { public ArrayList<String> Permutation(String str) { ArrayList<String> res = new ArrayList<>(); dfs(0, str.length(), str.toCharArray(), new boolean[str.length()], new StringBuilder(), res); return res; } p...