A material of density p is compressed and its sides becomes half of the original length. What is the new density?

Question: A material of density ρ is compressed and its all sides becomes half of the original length. What is the new density of the material?
(A) 0.125 ρ
(B) 0.50 ρ
(C) 2.0 ρ
(D) 8.0 ρ

The answer is: (D) 8.0 ρ
Density (ρ) = mass/volume = m/v = m/(length.width.height)
After compression, length, width, height becomes half. So,
Density (ρ) = m/[(1/2)length.(1/2)width.(1/2)height]
Finally, we have m/v = 8.0 ρ