Tech Mahindra interview question

Introduction, basic oops, basic programming