Maybe there is an error in Chapter 6 Review Question 11.
In my opinion correct answer should be B,
since the list is sorted in ascending order and would result in [Olivia, leo].
List<String> cats = new ArrayList<>();
cats.add("leo");
cats.add("Olivia");
cats.sort((c1, c2) -> c1.compareTo(c2));
System.out.println(cats);
Output: [Olivia, leo]
which would be answer B, and not A.
cats.sort((c1, c2) -> c2.compareTo(c1)); would reverse the order or better: would sort in descending order.