Optum interview question

Html substring in python and cpp