1) 배열2) 연결리스트push pop 사용Node 클래스 : value와 next 속성값을 지닌다. Stack 클래스 : 기존의 this.top을 연결받으면서 다음을 위해 this.top을 자신 노드로 설정한다. ex) 1이 push 되면 this.top은 null
0~11까지 정상적으로 출력된다. 기존에 작성했던 queue 클래스가 필요하다.