General Motors (GM) interview question

String manipulation, basic string parsing