The candy bar melted from the heat energy from the sun. The energy traveled from high to low. Energy could not be created or destroyed. The energy transfers from the sun to the candy bar which causes it to melt.