FlightAware interview question

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