Xcalar Interview Question

Write a script to parse a string.