If we don’t consider friction, the total mechanical energy of the pendulum remains the same as it swings from position A to position B. This is due to the principle of conservation of mechanical energy, which states that in the absence of non-conservative forces (like friction), the total mechanical energy (the sum of potential and kinetic energy) will remain constant.
So the correct response is:
It remains the same.