void main() {
var string = "rotator";
var palindrome = true;
for (var i = 0; i < string.length / 2; i++) {
if (string[i] != string[string.length - i - 1]) {
palindrome = false;
break;
}
}
if (palindrome) {
print("Palindrome");
}
else {
print("Not Palindrome");
}
}
/*
run:
Palindrome
*/