Uhhhh...you should have paid attention in class, just saying...
<h2>Answer: electrostatic and gravitational force
</h2><h2 />
Mechanical energy remains constant (conserved) if only <u>conservative forces</u> act on the particles.
In this sense, the following forces are conservative:
-Gravitational
-Elastic
-Electrostatics
While the Friction Force and the Magnetic Force are not conservative.
According to this, mechanical energy is conserved in the presence of electrostatic and gravitational forces.
Good luck with solving this