Brocade Interview Question

write function to generate a bit mask given a start bit position and number of bits