Rosetta Problems

Shift and Inversions

https://atcoder.jp/contests/abc190/tasks/abc190_f