MobileIron Interview Question

Implement ReadWriteLock from scratch code to handle all the usecases