It works for me... ;0


#1

public class Solution {
public int solve(int[] A) {
Arrays.sort(A);
int max = A.length-1;
int sum = A[0]+A[max];
return sum;
}
}