Lexicographically Smallest String After Applying Operations
Explore every string reachable by adding to the odd positions and rotating, and keep the smallest one.
Explore every string reachable by adding to the odd positions and rotating, and keep the smallest one.