code for implementing the two stacks in single array