Rosetta Problems

Repeat Playback and Partial Matching

https://atcoder.jp/contests/awc0047/tasks/awc0047_e