Tech Mahindra Interview Question

I didn't cleared the 2 nd round