• + 2 comments

    I used a loop with a deque as a stack instead to get around that problem