TikTok interview question

A leetcode problem : Design a hash set