class Solution {
public int solution(int[] num_list) {
int answer = 0;
return answer;
}
}
class Solution {
public int solution(int[] num_list) {
int answer = 0;
int even = 0;
int odd = 0;
for (int i = 0; i < num_list.length; i++) {
if (i % 2 == 1) {
even += num_list[i];
} else {
odd += num_list[i];
}
}
answer = Math.max(even, odd);
return answer;
}
}