Amdocs Interview Question

Frequency sorting