Let 'N' = 9397776.
The repeating digits in 'N' are 9 and 7.
Therefore, the answer is 2.
The first line contains an integer 'N'.
Return the count of repeating digits in 'N'.
You don’t need to print anything. Just implement the given function.
0 <= 'N' <= 10^9
Time Limit: 1 sec
Approach:
Algorithm:
Ninja And The LCM
Ninja In Interview
First N
Can You Print
Print Name
Print Name
Print Name
Print Name
Print Name