Sears interview question

Design a small system for the problem given on spot.