Pergunta de entrevista da empresa Oracle

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