input: Write a function to fetch employee details and generate a report.
  assert fetch_employee_details() == "John earns $50000 in HR\nJane earns $60000 in Marketing\n"
  assert fetch_employee_details() == "Alice earns $70000 in IT\nBob earns $80000 in Finance\n"
  assert fetch_employee_details() == "Charlie earns $55000 in Sales\nDavid earns $65000 in Logistics\n"
output: def fetch_employee_details():
      employees = [
          {"name": "John", "salary": 50000, "department": "HR"},
          {"name": "Jane", "salary": 60000, "department": "Marketing"},
          {"name": "Alice", "salary": 70000, "department": "IT"},
          {"name": "Bob", "salary": 80000, "department": "Finance"},
          {"name": "Charlie", "salary": 55000, "department": "Sales"},
          {"name": "David", "salary": 65000, "department": "Logistics"}
      ]
      
      report = ""
      for employee in employees:
          report += f"{employee['name']} earns ${employee['salary']} in {employee['department']}\n"
      
      return report