Deutsche Telekom interview question

write a code to replace a character in given string