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