Sobes.tech
Middle

Write a function that checks whether a string is a palindrome. A palindrome is a sequence of characters that reads the same forwards and backwards. Check only alphabetic characters a-я, А-Я, case-sensitive not considered.

sobes.tech AI

Answer from AI

The function first filters the string, keeping only Russian letters, converts them to lowercase, and then checks whether the string reads the same from left to right and from right to left.