Rosetta Problems

Shiritori

https://atcoder.jp/contests/abc109/tasks/abc109_b