input: Write a python function to execute a slow function in parallel using a thread pool.
  assert execute_slow_function_in_parallel(10) == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  assert execute_slow_function_in_parallel(5) == [0, 1, 2, 3, 4]
  assert execute_slow_function_in_parallel(3) == [0, 1, 2]
output: import concurrent.futures
  import time
  
  def slow_function(n):
      time.sleep(1)
      return n
  
  def execute_slow_function_in_parallel(n):
      with concurrent.futures.ThreadPoolExecutor() as executor:
          results = list(executor.map(slow_function, range(n)))
      return results