Domanda di colloquio di Clearwater Analytics (CWAN)

Given 2 lists, display the common elements without duplicates with an O(n) time complexity.