Tech Mahindra Interview Question

questions were mostly on oops concept