The function takes a word as input and removes the last letter of the word. If the word ends in a vowel, the function also removes the second-to-last letter.

