Barclays Interview Question

Balanced expression Producer consumer problem Threading