Beautiful Code interview question

Sort the characters in a string according to their frequency.