Citadel interview question

Write the code for a multi reader / single writer lock