UBS Interview Question

implement ReadWriteLocks using pre java 5 knowledge