Capgemini interview question

Write a code to remove special characters in a string