Pregunta de entrevista de Brocade

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