HP Inc. interview question

Producer/Consumer problem; queue implementation