Interview question asked to Software Engineers interviewing at Novartis, 2U, Ask.com and other companies. Original question asked: Sort a String by Frequency.