Java Concurrency Interview: Implement Producer Consumer pattern using wait-notify