Problem
Add a method named problem4 that accepts two arrays of integer values. Find the elements that only appear in one of the arrays. You may assume each array contains unique elements. Return the result.
Test case: array1 is {1, 4, 3, 2, 5}, array2 is {7, 5, 4, 6}, return {1, 3, 2, 7, 6}.