Can u help me with this C++ problem. Please.
Write a program that finds the most and least frequent digits in a given integer number. The program gets an integer number from keyboard as an input and finds the most and least frequent digits in the given number. In the case when there are multiple most/least frequent ones, the program should output one of them. Below are some examples of the program input and output:
input: 11599977
output: most frequent digit : 9, least frequent digit: 5
input: 1122333
output: most frequent digit : 3, least frequent digit: 1
The program ends when user enters a negative number.
Note: write well structured and readable code.