HARMAN interview question

some basic string manipulation code