문제 내 풀이import java.util.Scanner;public class Stack2 { public static int[] stack; public static int size = 0; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int N = sc.nextInt(); stack = new int[N]; for(int i = 0; i 기본적인 Stack 문제