Ad
  • Custom User Avatar

    Read about arrays and mutation, you are indeed mutating it. You're not creating a copy, only another reference to the same array.
    Try this kata
    And why did you set the loop limit to 100 iterations?