Mphasis Interview Question

paragraphs will took more time be careful about it