Rosetta Problems

Perfect String

https://atcoder.jp/contests/abc249/tasks/abc249_b