첫번째 시도
participant: 참가자
completion: 완주자
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; }