If we don't consider friction, the total mechanical energy of a pendulum is conserved as it swings from position A to position B. The total mechanical energy is the sum of potential energy and kinetic energy, and in the absence of non-conservative forces (like friction), this total remains constant throughout the motion.
So, the correct answer is:
It remains the same.