title: How to shuffle a number following a sequence (not random)
body: <p>I need to build a function that returns a given number shuffled writing one digit from the front of the number and the following taken from the back, then the 3rd digit from the front of the number and the 4th from the back and so on.</p>
  
  <p>Example: </p>
  
  <p>const initialNumber = 123456 should return 
  const finalNumber = 162534</p>
  
  <p>or  </p>
  
  <p>const initialNumber2 = 104 should return 
  const finalNumber2 = 140</p>
  
  <p>Also, the number should be between the values of 0 and 100.000.000.</p>
  
  <p>How to do it? Should I first transform the number into an array first of all using the split() method and then using a for loop?</p>