Deductions & credits

You are correct about that

The original question asked if they can move back in AFTER it was rented in order to meet the two year requirement.  So that would have triggered the rental period to be Nonqualified Use.  As I said before, the original answer is correct.