Keyfactor interview question

Implement a Cache system Solve bugs in a snippet of code