Pregunta de entrevista de Commonwealth Bank of Australia

Remove a given substring from Input without using any inbuilt function