Experis interview question

write code for parsing string