Apple Interview Question

The one and only two sum question