Apple interview question

The one and only two sum question