Middle
Write a function that checks if a string is a palindrome. - Palindrome is a sequence of characters that reads the same forwards and backwards. - Only alphabetic characters a-z and A-Z should be checked, case-sensitive should be ignored.
sobes.tech AI
Answer from AI
The isPalindrome function first filters the string, keeping only letters from the Russian and English alphabets, converting them to lowercase, then checks whether the string reads the same forwards and backwards.