Rosetta Problems

Magical String

https://leetcode.com/problems/magical-string