Jump Trading Interview Question

Implement a data structure (according to their specs)