Tech Mahindra Interview Question

C++, Coding based on OOPS Concepts