Design a data structure supporting inc(key), dec(key), getMaxKey(), and getMinKey(), all in O(1) time, where inc/dec adjust the count of a string key.
Enable JavaScript for the full StreamPrep guide.