Optum interview question

Python basic 2 pointer problem called two sum