Motorola Solutions interview question

Asked a few string manipulation problems