Update ThreeStacks.java