def solution(participant, completion) : the_dict = {person : 0 for person in participant} for person in participant : the_dict[person] = the_dict[person] + 1 for person in completion : the_dict[person] = the_dict[person] + 1 for person in participant : if the_dict[person] % 2 == 1 : return person return ""