permutation without duplicates. Example 1: Input: … Permutatio