Palo Alto Networks Interview Question

They asked about parsing the string in C