Question d’entretien chez Publicis Sapient

Java program to number of character occures in string?