input: Write a function to populate an array with random numbers from 1 to 100. The function should take an integer parameter representing the length of the array and return the populated array.
  assert populateArray(5) == [1, 2, 3, 4, 5] # Example output, actual values may vary
  assert populateArray(0) == []
  assert populateArray(3) == [98, 52, 13] # Example output, actual values may vary
output: import random
  
  def populateArray(length):
      return [random.randint(1, 100) for _ in range(length)]