https://paolochang.github.io/posts/leetcode-1221/
Leetcode 1221. Split a String in Balanced Strings - Paolography