Initially, m a's will be pushed on to the stack, then n b's will be pushed on to the stack. Now, for the next n a's, we will pop out the n b's which was already on the stack. Now the stack only has m a's, so for the next m b's we will pop m a's. Here is the PDA state diagram