Tech Mahindra interview question

Basic questions in technical interview