57. 숫자 짝꿍 class Solution { public String solution(String X, String Y) { StringBuilder answer = new StringBuilder(); int[] x = new int[10]; int[] y = new int[10]; for(String str : X.split("")){ x[Integer.parseInt(str)]++; } for(String str : Y.split("")){ y[Integer.parseInt(str)]++; } for(int i=9; i>=0; i--){ if(x[i] > 0 && y[i] > 0){ int num = Math.min(x[i], y[i]); for(int j=0; j