Which of the following statements is the contrapositive of the given statement?
If dogs have fleas, they scratch all night.
If they scratch all night, then dogs have fleas.
If they don't scratch all night, then dogs don't have fleas.
If dogs don't have fleas, then they don't scratch all night.