Systems Limited Interview Question

it was a two sum array problem,