i have been able to find the longest word but i\'m unable to get the logic right for displaying frequency of all the characters in the longest word.