Rosetta Problems

Iroha Loves Strings

https://atcoder.jp/contests/arc058/tasks/arc058_d