Everpure Interview Question

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