Domanda di colloquio di FlightAware

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