Rosetta Problems

Beautiful Strings

https://atcoder.jp/contests/abc044/tasks/abc044_b