Solution:
Water is oxidized in preference to metal is not available as anode is made of platinum.
Electrolysis is the technique of causing a chemical change in a material by passing an electric current through it. The material either loses or gets an electron during the chemical transition (oxidation or reduction).