Deutsche Telekom interview question

replace character in string