Q18Multiple correct6 Marks3 Sep 2023
A word is said to be a palindrome if the word obtained by reversing its letters is the same as the original word. For example, madam is a palindrome. The following pseudocode picks up a word from the "Words" table and checks if it is a palindrome or not. The result is stored in a boolean variable called flag. Select the correct implementation of the procedure isPalindrome. This procedure must return True if the word is a palindrome and False otherwise. It is a Multiple Select Question.
```
wordList = wordToList(X)
flag = isPalindrome(wordList)
********************
* Fill the code *
********************
Procedure wordToList(X)
i = 1
chars = []
while(i <= X.LetterCount){
chars = chars ++ [ith letter of X.Word]
i = i + 1
}
return(chars)
End wordToList
```