Cirrus Logic interview question

They asked me about implementing bit masking