Rosetta Problems

Insert AB or BA

https://atcoder.jp/contests/utpc2024/tasks/utpc2024_i