Pregunta de entrevista de Apple

Make a bitmask that takes as input a width and position