This is a follow up problem from Permutations. This goal of this problem is to return all possible unique results from the input of an array.
The solution I followed was Backtracking. Looks like a DFS (Depth-First Search) problem 🤔
Create a hashmap to take count of all number to leave have a non-reapeating digit or eliminate duplicate. Then the bactrack the decision tree.