ValueLabs interview question

Serialisation