Tech Mahindra interview question

Questions from C and data structure