Indeed Interview Question

Reverse an URL string while keep special characters, such as &, non-tackled.