Review this Java bounded-buffer producer using wait/notify.
There are two concurrency bugs, name both.