Tech Mahindra Interview Question

My grades, OOPS concepts with examples