Morgan Stanley interview question

Bit manipulation Arrays 2D array