Tech Mahindra interview question

about indepth abstraction and encapsulation