NatWest Group interview question

bridge blocking queue problem