Apple Interview Question

Make a bitmask that takes as input a width and position