Google interview question

Serialization/ deserialization