What is the time complexity of populating a HashSet with n elements? I was working on the Leetcode problem “Reverse Vowels of a String.”