KPMG interview question

Serialization Basic DSA question using lambda expression