• [deleted]
    + 1 comment

    The code works, but I think your function names are backwards; your stack appears to function like a queue and vice versa.