Uber interview question

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