Frage im Vorstellungsgespräch bei Commonwealth Bank of Australia

Remove a given substring from Input without using any inbuilt function