Amazon interview question

Bit manipulation question about on set/get/toggle x:y bits in a register