Oracle interview question

A two-sum problem and they expected various approaches.