Wiser Solutions interview question

String manipulation, somewhat normal question