A company is transmitting data to another server. The data is in the form of numbers. To secure the data during transmission, they plan to obtain a security key that will be sent along with the data. The security key is identified as the count of the repeating digits in the data.
Write an algorithm to find the security key for the data.
The input consists of integer data, representing the data to be transmitted.
Print an integer representing the security key for the given data. If no data is repeated it should display
The repeated digits in the data are 7, 8, and 3. So, the security key is 3.
Public Test Cases
Expected Output: 3
long int n;