Pergunta de entrevista da empresa MathWorks

Question based on stream of integers Hash Set