Pregunta de entrevista de MicroStrategy

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