Create a function that takes an array and returns the most frequently occurring element contained within it.
find_frequent([3, 7, 3]) ➞ 3
find_frequent([nil, "hello", true, nil]) ➞ nil
find_frequent([false, "up", "down", "left", "right", true, false]) ➞ falseN/A