FITSO Interview Question

producer consumer problem and write code for the same