X Interview Question

Implement a write/read thing, optimize on read.