Pergunta de entrevista da empresa Clearwater Analytics (CWAN)

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