Tech Mahindra interview question

Basic c programming