Infosys Interview Question

Q: Producer and Consumer problem