Panasonic interview question

Coding questions, Reverse the string but keep special characters on same place.