Rosetta Problems

Flip to Gather

https://atcoder.jp/contests/abc408/tasks/abc408_d