Solve matrix rotation and 1-D illumination | Capital One