Everpure interview question

Monitor locks to acquire and release. A stack and set based question