Guidewire interview question

Coding test asked to implement simple case handler, and a string algorithm