input: Write a function to generate an array of given length populated with random numbers ranging from 1 to 100. If the given length is 0 then return an empty array.
  
  assert populateArray(5)==[78, 15, 92, 34, 61]
  assert populateArray(3)==[22, 45, 99]
  assert populateArray(0)==[]
  assert populateArray(2)==[56, 88]
  assert populateArray(1)==[33]
output: import random
  
  def populateArray(length):
      if length == 0:
          return []
      return [random.randint(1, 100) for _ in range(length)]