Cognizant Interview Question

rotation of string and frequency of a particular letter in string (java)