SpanIdea interview question

Bit setting