LinkedIn Interview Question

implement a concurrent read-write buffer.