What's wrong with this code

i am not getting output after reversing stack

just change class name Reverse Stack to Main.
code is fine