Basic string question with sub questions. 1. Read a file and count the words. had given how the output should be. 2. Get longest word which had same first and last letter from the words which was read from file.
Sigiloso
- used hash map to count the words. - When printing the words,calculated the longest word and stored in a variable.