Hi Akash, I think if we add on emore transition to Solution 2 (i.e. c,c/cc) to state 2 then both the solutions are correct. And i will go with 2nd one as it will be minimal PDA.

Well both the solutions will be correct after adding this transition. What do you think?

Well both the solutions will be correct after adding this transition. What do you think?