Tech Mahindra Interview Question

more on concepts and some practical questions