[Solved] Write an algorithm to identify which words will be saved in the dictionary
write an algorithm to identify which words will be saved in the dictionary. input: string input output: print space-separated strings in the lexicographically sorted order representing the number of repeated words detected in the input text and if no word…