Implement MyQueue using two stacks
In dequeue, you do this:


pop everything from main and push to helper
pop one from helper
pop everything from helper and push to main


Basically moving all elements, twice.

You can do better:


if helper is empty: pop everything from main and push to helper
pop one from helper


This will significantly reduce the number of times elements are moved.

Don't forget to adjust isEmpty accordingly.