HARMAN Interview Question

some basic string manipulation code