input: Write a python function to categorize records into male and female lists.
  assert classifier([("John", "male"), ("Alice", "female"), ("Bob", "male"), ("Eve", "female")]) == (["John", "Bob"], ["Alice", "Eve"])
  assert classifier([("Mike", "male"), ("Jill", "female"), ("Tom", "male")]) == (["Mike", "Tom"], ["Jill"])
  assert classifier([("Ann", "female"), ("Peter", "male"), ("Sam", "male")]) == (["Peter", "Sam"], ["Ann"])
output: def classifier(records):
      males = []
      females = []
      for name, gender in records:
          if gender == "male":
              males.append(name)
          elif gender == "female":
              females.append(name)
      return males, females