Write a program that prompts the user to input a string and then outputs the string in the pig Latin form. The rules for converting a string into pig Latin form are asfollows:
a. If the string begins with a vowel, add the string "-way" at the end of the string. for example, the pig Latin form of the string "eye" is "eye-way".
b. If the string does not begin with a vowel, first ass "-" at the end of the string. Then rotate the string one character at a time; that is, move the first characterof the string to the end of the string until the first character of the string becomes a vowel. The add the string "ay" at the end. For example, the pig Latin form ofthe string "There" is "ere-Thay".
c. Strings such as "by" contain no vowels. In cases like this, the letter y can be considered a vowel. So, far this program the vowels are a, e, i, o, u, y. Therefore,the pig Latin form of "by" is "y-bay".
d. Strings such as "1234" contain no vowels. The pig Latin form of the string "1234" is "1234-way". That is, the pig Latin form of a string that has no vowels in it isthe string followed by the string "-way".
Your program must store the characters of a string into a linked list and user the function rotate (function to remove the first node of a linked list and put it atthe end of the linked list) to rotate the string.