onsemi interview question

How do you write and read bitmasks.