Pregunta de entrevista de Société Générale

Write a program to find the sum of pairs from an array