Python Set Intersection Complexity Approach