Cognizant interview question

Replace characters in a string in python.