Fixed the declaration of new stack
Added function to print stack and test cases