Frage im Vorstellungsgespräch bei Red Hat

Design a class in Python that efficiently stores a sparse vector.