A hanging bob swings around its mean position from one extreme to another extreme position.
(i) The bob has the maximum potential energy at the extreme positions. In the given case, the bob will have maximum potential energy at B and C positions. Because the velocity of the bob becomes zero at the extreme positions, that's why at extremes whole of the energy becomes potential energy.
(ii) At the mean position, the velocity of the bob is maximum as all of the potential energy gets converted into kinetic energy. Hence, at the mean position A, the bob will have the maximum kinetic energy.