Sponsored
Use these hints if you're stuck. Try solving on your own first.
We need to perform the operation only when the equivalent element of <code>i</code> from the back is not equal.
Solve with full IDE support and test cases