TikTok Interview Question

A leetcode problem : Design a hash set