Aspire Systems interview question

Related to strings polymorphism pattern problem

Aspire Systems Interview Question: Related to strings polymorphism pattern problem | Glassdoor