MathWorks interview question

Question based on stream of integers Hash Set