Tech Mahindra interview question

Datatypes, OOPs concepts, program