Tech Mahindra Interview Question

about indepth abstraction and encapsulation