Capgemini Engineering Interview Question

OOP, Code related to strings operations