Bit Mask Generation Algorithm
Bit Mask Generation Algorithm: a task in Terminal-Lego-15k (Harbor dataset). You need to implement an efficient algorithm to generate a bit mask based on an input parameter. The bit mask should have the lowest n bits set to 1, where n is the input parameter.
The task
You need to implement an efficient algorithm to generate a bit mask based on an input parameter. The bit mask should have the lowest `n` bits set to 1, where `n` is the input parameter.
Part of PrimeIntellect/Terminal-Lego-15k.