Indeed interview question

Implement an expiring map