// program to check if the string is palindrome or not
function checkPalindrome(str) {
// find the length of a string const len = string.length; // lo