let is_palindrome str = str = String.rev str ;;
(function is_palindrome will return true or false for input str )