Google Interview Question

string serialization and deserilization