Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
This problem is exactly like reversing a normal string except that there are certain characters that we have to simply skip. That should be easy enough to do if you know how to reverse a string using the two-pointer approach.