Microlise interview question

solid principle related questions.