Microsoft Interview Question

They asked Contains duplicate leetcode question