UST interview question

Serialisation