Tech Mahindra Interview Question

nothing is difficult here