https://school.programmers.co.kr/learn/courses/30/lessons/86051
contains()함수를 쓰기 위해서 ArrayList로 변환해서 처리
import java.util.*;
class Solution {
public int solution(int[] numbers) {
int answer = 0;
int[] number={0,1,2,3,4,5,6,7,8,9};
List<Integer> arr = new ArrayList<>();
for(int i =0; i<numbers.length;i++){
arr.add(numbers[i]);
}
for (int i =0; i<10; i++){
if(!arr.contains(number[i])){
answer +=number[i];
}
}
return answer;
}
}