If a substance maintains its shape when it is placed into a different container, which state of matter is it in?

A. Liquid
B. Gas
C. Plasma
D. Solid