The answer is endothermic as the heat flows into the system from the surroundings. The products are at higher energy than the reactants, as they have absorbed energy.
In Electrolysis, the process uses an apparatus consisting of positive and negative electrodes which are separated from each other in a solution. Electric current enters through the negatively charged electrode (cathode). Positively charged parts of the solution travel to the cathode, combine with electrons, and are transformed into neutral molecules. The negatively charged parts of the solution travel to the positive electrode (anode), give up electrons, and are transformed into neutral molecules.Water is split with electricity to produce hydrogen gas and oxygen gas.
So, the system takes in heat it is positive and the work is positive because it is done by the system.