Xilinx interview question

Q: math, generate all sub-bitmask