Amazon Interview Question

Find the most frequent element in a list.