Brototype interview question

about object oriented programing and problem solving