Optum Interview Question

Python basic 2 pointer problem called two sum