Mphasis Interview Question

Nothing much difficult