Function to check if the String is palindrome or not
function checkPalindrome ( s ) { let low = 0 , high = s . length - 1 ; while ( low < high ) { if ( s [ low ] != s [ high ] ) return false ; low ++ ; high -- ; } return true ; }