Tech Mahindra interview question

Oops concepts , program, aptitude