Fragcolor interview question

Given variable input specifying arbitrary types of data structures in a given buffer, parse the buffer and output it in a differently packaged form/data structure.