Frequency-Based Character Ordering - Coding problem | OneNoughtOne