Tech Mahindra interview question

Basic questions about technical part