Pergunta de entrevista da empresa Systems Limited

it was a two sum array problem,