Panasonic Interview Question

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