No Reset: Since the array wasn't reset back to its original state, the modifications to the array during the first execution affected the state of the array in subsequent executions, leading to different outputs.