Rosetta Problems

一端进,两端出

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