← Challenges

Is Palindrome

Write solve(s) that returns true if s reads the same forwards and backwards, false otherwise.

Examples

  • solve("level")true
  • solve("hello")false