Domanda di colloquio di Taboola

Reverse a string without affecting special characters (optimally)