Dell Technologies interview question

implement the readers & writers problem in c++