Question d’entretien chez Perennial System

Using Java 8 features, write code to count characters and their occurrences in the string: `String name = "coconutandcoconut"`. (coding)