Samsung Electronics Interview Question

Reader Writer Problem