input: Write a function to check if a string is a palindrome.
  assert isPalindrome("malayalam") == True
  assert isPalindrome("hello") == False
  assert isPalindrome("racecar") == True
output: def isPalindrome(s: str) -> bool:
      return s == s[::-1]