Answer:
Any form of semi high energy waves cause the water molecules inside the marshmallow to vibrate which heat and soften the sugar matrix inside the marshmallow. The weakened sugar matrix allows air bubbles within the marshmallow to expand rapidly and the marshmallow puffs up and becomes goo. If this proccess is repeated it can completly change it's state of matter.
Step-by-step explanation: