ACI Worldwide Interview Question

How to create a class which has same functionality as string?