class Solution {
public int solution(int[] num_list, int n) {
int answer = 0; // answer을 0으로 초기화
for(int i = 0; i < num_list.length; i++){
if(num_list[i] == n){ // num_list[i] 구하기
answer = 1; // 맞으면 answer = 1;
}
}
return answer; // 아니면 0
}
}