Implement the find_common method. 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 CommonNames.find_common(["Ava", "Emma", "Olivia"], ["Olivia", "Sophia", "Emma"]) should return an array containing Ava, Emma, Olivia, and 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