what is the output of the following?

public class test

{

public static void main(String [] args)

{

string prob = ''frog";

for (int x=0; x
{

for (int y=0; y<=x; y++)

System.out.print(prob.charAt(x));

System.out.println();

}

}

}