Added correct solution to 3.5

The previous solution uses arrays when the question specifically asks to implement two stacks.