from typing import List
from typing import Any
from typing import Counter


def duplicatesInList(l: List[Any]) -> List[Any]:
    """
    Return duplicate elements in the given list

    Source: https://stackoverflow.com/a/9835819/2972183
    """
    return [item for item, count in Counter(l).items() if count > 1]