<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def difference (b, a):
 """ Returns the elements of B that are not in A. """

    a = set(a)
    result = []
    for item in b:
        if item not in a:
            result.append(item)
    return result