Pregunta de entrevista de Bounteous x Accolite

Given an alphanumeric string, find the frequency and sort it.