Netflix Interview Question

threading safe algorithm and coding