Tech Mahindra interview question

Just basic technical questions and simple programs