DNB interview question

Basic design of a system