Pergunta de entrevista da empresa Amazon

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