Tech Mahindra interview question

basic technical