https://www.javacodegeeks.com/counting-the-number-of-unique-digits-in-an-integer-in-java.html
Counting the Number of Unique Digits in an Integer in Java