Jio interview question

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