Quantcast interview question

create an API to support adding, querying, and removing xml commands from a database