Tech Mahindra interview question

Technical Questions were not tough