Uplers Interview Question

Regex questions to replace a substring