Robinhood interview question

Implement a specific collection from Python collections