Palindrome test

Report a typo

A palindrome is a word or group of words that remains the same whether you read it forwards from the beginning or backwards from the end: "refer" and "level" are palindromes. Please return the number of words that are palindromes.

Sample Input 1:

ana arara casa ovo radar reviver sator solos stats tenet xanax

Sample Output 1:

9
Write a program in Kotlin
fun main() {
val input = readln().split(" ").asSequence()
// write your code here

}
___

Create a free account to access the full topic