Chetu interview question

Design patterens