Write most_common(items) returning the most frequent item. Ties go to the item that appears first in the list. Return None for an empty list.
most_common(['UPI', 'Card', 'UPI', 'COD']) → 'UPI'
most_common([]) → None
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.