Pregunta de entrevista de Systems Limited

it was a two sum array problem,