Mphasis Interview Question

Simple OOPs concept