Pergunta de entrevista da empresa Bounteous x Accolite

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