LinkedIn interview question

Implement a data structure having add, sub, remove features.