#include <iostream> #include <string> #include <algorithm> using namespace std; bool isPalindrome(string text) { string cleaned = ""; for (char c : text) { if (isalnum(c)) {
#include <iostream> #include <string> #include <algorithm> using namespace std; bool isPalindrome(string text) { string cleaned = ""; for (char c : text) { if (isalnum(c)) {