Pregunta de entrevista de Oracle

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