Capgemini interview question

consumer - producer pattern