Two protons are brought closer. What is the effect on the potential energy of the system?

Work is done to overcome the force of repulsion. So, the potential energy of the system increases.