ok, I've got a homework assignment I need help with. We have to write a program to take a user-inputted (is inputted a word) string, display it in reverse order, and then count the occurrences of the characters in the string, and display the results (just for characters that actually occur in the string, i.e. we don't have to output x=0, y=0, z=o for any that don't occur). It has to be able to handle all normal Latin capital & lower-case letters, numbers and common punctuations and symbols (i.e. those physically on a normal desktop keyboard). Obviously we have to then output the I know to use string manipulators to display it in reverse order, but is there an easier way to do this character counting thing than the obvious (but long and tedious) way of declaring count variables for every character, initially defining them each as equal to 0, and then doingfor each occurrence of the character? Something with loops or something?Code:char_count++