Yahoo Interview Question

how to serialize and object?