Tech Mahindra Interview Question

The questions were pretty basic