Easy java solution using collection


#1

public class Solution {
public int solve(ArrayList A) {
int min=Collections.min(A);
int max=Collections.max(A);
return max+min;
}
}