Design a class RandomizedSet that supports insertion, deletion, and random access in O(1) time complexity.
The implementation uses a hash map for quick lookups and updates and an array for constant-time random access.
The insert operation adds the value to the end of the array and stores the value's index in the map.
The remove operation replaces the element to be removed with the last element in the array, updates the last element's index in the map, and removes the last element from the array.