1. Write a program that reads a string from the console and prints in alphabetical order all words from the input string and how many times each one of them occurs in the string.
2. Write a program that reads a string from the console and replaces every sequence of identical letters in it with a single letter (the repeating letter). Example: "aaaaabbbbbcdddeeeedssaa" à "abcdedsa".