Birdeye interview question

How would you implement your ReadWrite Lock.