The figures are rotating 90 degrees clockwise in each step. The first figure in the second row is a 90-degree rotation of the last figure in the first row. The question mark should be a 90-degree clockwise rotation of the second figure in the second row, which matches figure (2).