Minimum Number of Swaps to Make the String Balanced | Leetcode 1963