if we use stack symbols as {z0,A} where initial stack symbol is {z0} and final state is {q2} than if the transition functions are-
(q0, a, z0) --> (q0, Az0)
(q0, a, A) --> (q0, AA)
(q0, b, A) --> (q1, ϵ)
(q1, b, A) --> (q1, ϵ)
(q1, ϵ, A) --> (q2, ϵ)
q2 is final state..
Minimum no. of states = 3, with NPDA.