What is the contrapositive of the statement?

All squares are rectangles.

If a figure is a square, then it is a rectangle.
If a figure is a rectangle, then it is a square.
If a figure is not a square, then it is not a rectangle.
If a figure is not a rectangle, then it is not a square.