Rosetta Problems

Yet Another ABC String

https://atcoder.jp/contests/agc058/tasks/agc058_d