title: How to print star with reverse numbers pattern
body: <p>How can I get a square pattern with star and reverse numbers, please look at the image link below to understand my expected output.</p>
  <p>I want the output like this</p>
  <p><a href="https://drive.google.com/file/d/1HsoQ-0kEy9qP1PHymYNcWCbZTltaHNiW/view?usp=sharing" rel="nofollow noreferrer">image</a></p>
  <p>Right now I'm using this but it's not reversed.</p>
  <pre class="lang-cs prettyprint-override"><code>int counter = 0;
  int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; 
  for (int i = 1; i &lt;=4; i++)
  {
      for (int j = 1; j &lt;=4 -i; j++)
      {
          Console.Write(&quot;*&quot;);
      }
  
      for (int k = 1; k &lt;=i ; k++)
      {
          Console.Write(array[counter++]); 
      }
  
      Console.WriteLine();
  }
  </code></pre>