Pergunta de entrevista da empresa Brocade

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