Pergunta de entrevista da empresa Infosys

a string have character also special char just reverse string and let the special char in same place