input: class Problem, output: List<Car>