Pergunta de entrevista da empresa Lyft

Find common elements within 2 integer arrays in O(N) time and O(1) space