Create ThreeStack.java

// Implement three stacks efficiently in a single array