You should understand at least two ways of thinking about this situation.
i) You have probably have common knowledge that you have to add heat to something (e.g. turn on the “burner” on the range) to boil it. That would tell you that the arrow points in.
ii) Your physics knowledge tells you that the bond energy went up (bonds were broken) and that the thermal energy did not change (no temperature change). From this you can say that the total internal energy (Eth + Ebond) increased and, according to our energy-interaction model, the total energy of a physical system can only increase if energy was added to it so heat must have been added.
To check that we are consistent, note that the “Heat” arrow points inward and Bond E goes up.