---
# System prepended metadata

title: Coding task

---

# Coding task

Please return a list of all phone numbers.

```java
Map<String, List<String>> people = new HashMap<>();
people.put("John", Arrays.asList("555-1123", "555-3389"));
people.put("Mary", Arrays.asList("555-2243", "555-5264"));
people.put("Steve", Arrays.asList("555-6654", "555-3242"));

// your implementation goes here
List<List<String>> listOfNumbers = people.values();
List<String> phoneNrs = numbers.stream().flatMap(list -> list.stream()).collect(Collectors.toList());

```