Given two lists, A and B, return the first element of A that appears the fewest times in B.
For example,
xxxxxxxxxx
A = [1, 2, 3, 4, 5, 6]
B = [3, 1, 4, 1, 5, 9]
The elements ‘2’ and ‘6’ both appear 0 times in B. Because ‘2’ occurs first, your program/function should return 2. (note that ‘9’ appears in B but not in A.)
B may be empty, but A will always have at least 1 element.
More examples: