Rosetta Problems

Substring

https://atcoder.jp/contests/abc347/tasks/abc347_b