Pergunta de entrevista da empresa FlightAware

Given two arrays, return an array containing the elements in either array but not both.