Pergunta de entrevista da empresa Microsoft

Code for Reader writer problem.