Please, observe that it is not right to say that a substance content heat.
Heat is not something that a body or substance content. Heat is the transmission of energy due to difference of temperatures.
An endothermic reactions is that where the reactants abosorb energy from the surroundings to occur. The products, then, will be higher in energy than the reactants while the surroundings get colder.
<span>Photosynthesis Is a Reaction To Make Food</span>
If the sealed glass is permeable to sunlight or to transfer of heat will be an open system, but if the sealed glass is a thermic glass and doesn't allow exchange of heat and exchange of solar energy (for example a mirrored glass that reflect the sunlight) and the terrarium is not exchanging energy with the surroundings will be a closed system. It is a question that doesn't specify too many details about the system in the study. It is hard to give a final answer without making some assumptions.