https://programmers.co.kr/learn/courses/30/lessons/17681
" "
"#"
public static String[] solution(int n, int[] arr1, int[] arr2) {
String answer[] = {};
answer = new String[n];
StringBuilder sb = new StringBuilder();
for(int i=0;i<n;i++) {
System.out.println(n +" "+ arr1[i] +" " + arr2[i] );
}
for(int i =0;i<n;i++) {
for(int j=0;j<n;j++) {
if(arr1[i]%2==1||arr2[i]%2==1)
sb.append("#");
else
sb.append(" ");
arr1[i] = arr1[i]/2;
arr2[i] = arr2[i]/2;
}
answer[i] = sb.reverse().toString();
sb.setLength(0);
}
return answer;
}