Rosetta Problems

Good Permutation 2

https://atcoder.jp/contests/arc178/tasks/arc178_a