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