Tech Mahindra interview question

Basics of programming