Xilinx Interview Question

Q: math, generate all sub-bitmask