IBM Interview Question

String parsing