Answer :

Let me show you with the formula

U=(q1*q2)*k/r

if both charges are similar it means both are positive or negative, if you multiply them you would get positive energy

+*+=+

-*-=+