Embitel Technologies interview question

Parsing the packet from message