Solution:
Concept: Take the potential energy at the resting (mean) position A as zero. At the extremes the bob is momentarily at rest at height h, so all its energy is potential energy, mgh. Mechanical energy is conserved, so the total is mgh at every position.
(i)
Step 1 — At A.
A is the mean position: the bob is lowest (U = 0) and moving fastest, so all its energy is kinetic: K = mgh, U = 0.
(ii)
Step 2 — At B.
B is an extreme position: the bob is at rest at height h, so K = 0, U = mgh.
(iii)
Step 3 — At C.
C is the other extreme, also at rest at height h, so K = 0, U = mgh.

Check: At every position K + U is mgh, which shows that mechanical energy is conserved.
Therefore, at A: K = mgh, U = 0; at B: K = 0, U = mgh; at C: K = 0, U = mgh.