Xirgo Technologies Interview Question

Write a function to extract a several fields from a byte-steam