onsemi Interview Question

How do you write and read bitmasks.