1. Write a program to extract a portion of a character string and print the extracted string.
Assume that m characters are extracted, starting with the nth character. 2. Write a program which will read a text and count all occurrences of a particular word. 3. Write a program which will read a string and rewrite it in the alphabetical order. For example, the word STRING should be written as GINRST.