import java.util.*;
class Solution {
public int solution(int[] numbers) {
int answer = 0, sub_answer = 0;
Arrays.sort(numbers);
for(int i = 0; i < numbers.length; i++) {
if(numbers[i] < 0) {
sub_answer = numbers[0] * numbers[1];
}else {
answer = numbers[numbers.length - 1] * numbers[numbers.length - 2];
}
}
if(sub_answer != 0 && sub_answer > answer) {
answer = sub_answer;
}
return answer;
}
}