Tech Mahindra interview question

About my project, python,oops concepts