Jio Interview Question

Write a Python function to find the most frequent element in a list.