MathWorks Interview Question

Question based on stream of integers Hash Set