Tech Mahindra Interview Question

I was attending aptitude round