Pergunta de entrevista da empresa Oracle

How would you replace some string in a string?