#23 Position 2 is legal.
With the White pawns on b3 and c3, the Black a-pawn captures the a1 rook on b2, promotes to a bishop on b1, then moves to a6.
Next, White plays c4, clears the back rank (which requires moving the g-pawn) and moves the h1 rook to c6 via c1, c3, d3 and d6 where it is captured by the Black d-pawn.
1 and 2 are illegal. What was the d-pawn captured a piece on c6, which has to be a rook. The rook could only have come out when the pawn was on c4, which blocks the bishop in. With the pawn on h3 the other rook could have gone to c6.