Tech Mahindra interview question

My grades, OOPS concepts with examples