add stack queue problem