input: Write a function to populate an array with random numbers from 1 to 100. The function should take the length of the array as an input and return the populated array.
  assert populateArray(5) == [random numbers from 1 to 100, 5 in total]
  assert populateArray(1) == [random number from 1 to 100]
  assert populateArray(0) == []
  assert populateArray(10) == [random numbers from 1 to 100, 10 in total]
  assert populateArray(3) == [random numbers from 1 to 100, 3 in total]
output: import random
  
  def populateArray(length):
      return [random.randint(1, 100) for _ in range(length)]