Tech Mahindra interview question

questions were mostly on oops concept