```python
def max_occurrences(nums):
    """
    Finds the item with maximum occurrences in a given list.
    """
    if not nums:
        return None

    counts = {}
    for item in nums:
        counts[item] = counts.get(item, 0) + 1

    return max(counts, key=counts.get)

```