The contrapositive switches the hypothesis and the conclusion and negates both in this form:
Statement: If A, then B
Contrapositive: If not B, then not A.
In this case, the statement is:
"If the lights are off, there is no one inside."
Contrapositive:
If there is someone inside, the lights are on.