@@ -0,0 +1,958 @@
+import java.util.Scanner;%0A%0Apublic class Solution%7B%0A    public static void main(String args%5B%5D)%7B%0A        Scanner s = new Scanner(System.in);%0A        String raw = s.nextLine();%0A        raw = raw.trim();%0A        //int row = (int)Math.floor(Math.sqrt((double)raw.length()));%0A        int col = (int)Math.ceil(Math.sqrt((double)raw.length()));%0A        int row = col;%0A        char arr%5B%5D%5B%5D = new char%5Brow%5D%5Bcol%5D;%0A        char src%5B%5D = raw.toCharArray();%0A        int x = 0;%0A        for(int i=0;i%3C=row-1;i++)%7B%0A            for(int j=0;j%3C=col-1;j++)%7B%0A                if(x%3Esrc.length-1)%7B%0A                    i = row;%0A                    break;%0A                %7D%0A                arr%5Bi%5D%5Bj%5D = src%5Bx++%5D;%0A            %7D%0A        %7D%0A        for(int i=0;i%3C=col-1;i++)%7B%0A            for(int j=0;j%3C=row-1;j++)%7B%0A                if(arr%5Bj%5D%5Bi%5D != '%5Cu0000')%7B%0A                    System.out.print(arr%5Bj%5D%5Bi%5D);%0A                %7D%0A            %7D%0A            System.out.print(%22 %22);%0A        %7D%0A    %7D%0A%7D%0A

Create Solution.java