Tech Mahindra interview question

Oops concepts basics were asked