Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positions.
Hint 1
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.