Pergunta de entrevista da empresa MicroStrategy

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