I have an algorithm. İt\'s not good I know but I wonder complexity of this algorithm:
MatrixGenerator(ArrayList main, ArrayList