class Solution { public int solution(int[] absolutes, boolean[] signs) { int answer = 123456789; int i =0; int count =0; for(int x : absolutes){ if(signs[i]) count += x; else count -= x; i++; } answer = count; return answer; } }