main function
void
main()
Implementation
void main() {
print("Enter a string:");
String input = stdin.readLineSync()!;
if (isPalindrome(input)) {
print("$input is a palindrome");
} else {
print("$input is not a palindrome");
}
}