Systems Limited interview question

it was a two sum array problem,