Think about the memory layout of a process, if you will analyse that then stack grows upwards and heap grows downwards so similar concept you can use here to implement two stacks in a single array
---------------------Array index 0
-
-
-
- top 1 (Points to top of stack one)
Space to insert new elements
- top2 (Points to top of stack two)
-
----------------------Array Index N