When is the electrostatic potential energy of a system of two charges positive?
The NCERT text states, 'If $q_1q_2 > 0$, potential energy is positive. This is as expected, since for like charges ($q_1q_2 > 0$), electrostatic force is repulsive and a positive amount of work is needed to be done against this force to bring the charges from infinity to a finite distance apart.' Both positive-positive and negative-negative charges result in a positive product, hence positive potential energy.