Deutsche Telekom Interview Question

replace character in string