Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
It is optimal to perform the operation on the lowest index possible each time.
Traverse the string from left to right and perform the operation every time it is possible.