Etched interview question

extracting a certain byte range from a given 32 bit value in C