Cirrus Logic Interview Question

They asked me about implementing bit masking