input: Write a python function to generate a random string of specified length using alphabets.
  assert len(generator(10)) == 10
  assert len(generator(5)) == 5
  assert isinstance(generator(8), str)
output: import random
  import string
  
  def generator(length):
      return ''.join(random.choice(string.ascii_letters) for _ in range(length))