Everpure Interview Question

algorithm, multithread