Domanda di colloquio di Oracle

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