Tech Mahindra Interview Question

simple questions, technical bit difficult.