Pregunta de entrevista de Uber

First question was about finding maximum sum pair in an array.