0

Given two python lists a and b. These lists may intersect (It is possible that lists intersect more than once). There is an example:
a = [1,2,5,7,6,9,1,3,1,2,6,6,3,1,2,6,1,3]
b = [3,1,2]
There are 4 intersections:
[1,2,5,7,6,9,1,3,1,2,6,6,3,1,2,6,1,3]
[3,1,2] [3,1,2] [3,1,2] [3,1...