You are given an array of integers. Can you arrange the elements in such a way as to maximize ?
The first line will contain the integer .
The second line will contain integers, .
Output the maximum value of .
For 4/15 of the marks, .
2 3 2 5 1