Everpure Interview Question

Simple algorithms, concurrency problem - really nothing that dificult.