Write a program that reads a long integer and determines how many times each digit from 0 to 9 appears.
An integer (can be very long, so reading it as a string is recommended).
For each digit that appears at least once, display the format digit:frequency. Results must be in ascending order and separated by a space.
Input:
112233
Output:
1:2 2:2 3:2