FightCode: Given the string, check if it is a palindrome.
- For
inputString = "aabaa", the output should be solution(inputString) = true; - For
inputString = "abac", the output should be solution(inputString) = false; - For
inputString = "a", the output should be solution(inputString) = true;
- input string inputString
A non-empty string consisting of lowercase characters.
Guaranteed constraints:
1 ≤ inputString.length ≤ 105.
- Output boolean
true if inputString is a palindrome, false otherwise.