Smaller problem

how should i iterate over row and col in recusrion …whats the smaller problem

hi @kshitijkumar7548_da7d29c5890bbfd8
refer

pattern(int n){

   if(n == 1){
       print "*" 
       print "\n" 
        return;

   }
   pattern(n - 1);

  for(int i = 0; i < n; i++){
        print "*"
  }

  print "\n"
}