Question d’entretien chez Oracle

java code for reverse the string and count accurance of each letter