Tech Mahindra interview question

normal programming questions in c