Revolut interview question

Time complexity of HashSet and how does it work?