Pregunta de entrevista de Comcast

Code Producer Consumer problem in java