Added correct solution to 3.5. Previous solution uses arrays when the question specifically asks to use stacks.