first and second. Words may repeat within a list.
Count how many distinct words appear **exactly once** in first and also **exactly once** in second.first=["milk", "bread", "milk", "eggs"], second=["eggs", "bread", "tea"] → 2
"bread" and "eggs" appear exactly once in each list. "milk" is missing from the second list (and appears twice in the first), "tea" is missing from the first.
first=["apple"], second=["apple", "apple"] → 0
"apple" appears twice in the second list, so it does not count.
first=["x", "y"], second=["z"] → 0
first=["milk", "bread", "milk", "eggs"], second=["eggs", "bread", "tea"]
2
Run checks the first 3 tests in your browser. Submit checks all 103 tests on the server, hidden ones included.