Implement the find_common function. When passed two arrays of names, it will return an array containing the names that appear in either or both arrays. The returned array should have no duplicates.
For example, calling Names::find_common(['Ava', 'Emma', 'Olivia'], ['Olivia', 'Sophia', 'Emma']) should return ['Emma', 'Olivia', 'Ava', 'Sophia'] in any order.
- Example case: Wrong answer
- Each array has distinct names: Wrong answer
- Each array has duplicate names: Wrong answer
- Arrays have some names in common: Wrong answer