Ramp interview question

Implement an in-memory database supporting various operations across four progressive levels.