Rosetta Problems

困牛排序

https://www.acwing.com/problem/content/1698