Tech Mahindra interview question

basic C programming