Revolut Interview Question

Time complexity of HashSet and how does it work?