This type of essay would draw the relation between off-campus and on-campus living, by comparing them and bringing forth their pros and cons.
Hence option D is correct.
Options A, B and C: These titles are descriptive or argumentative. But they neither compare nor contrast. They have one single topic each to write on.
Options A, B and C are not suitable for a Compare and Contrast essay.
Hence options A, B and C are wrong.