Optum interview question

Sed command and it's working