Domanda di colloquio di Salesforce

Josephus problem Sort string by frequency of characters