Domanda di colloquio di MicroStrategy

Coding question: Minimum Number of Swaps to Make the String Balanced