Tech Mahindra Interview Question

General questions about the basic concept