Dell Technologies Interview Question

implement the readers & writers problem in c++