첫번째 시도

participant: 참가자

completion: 완주자

  1. participant에서 completion안에 있는 이름과 비교 후 같은 사람이 있는 경우 제거
  2. 모든 completion내 값을 비교 후 제거한 다음 participant를 return
for(let i=0; i<completion.length; i++){
	number=participant.indexOf(completion[i]);
	if(number!=-1){
		participant.splice(number,1);
	}
	answer=participant[0];
	return answer;
}