Pseudocode for the functions. Still missing find 3 chars with smallest and largest freq