Domanda di colloquio di Revolut

Time complexity of HashSet and how does it work?