Applied Intuition interview question

A message parsing question involving strings and basic data structures.