Welcome to part 3 of this series, Q3.Given a string, write a recursive function that checks if the given string is a palindrome, else, not a palindrome. What is Palindrome? Palindrome :- a word, phrase, or sequence that reads the same backwards as forwards, e.g. madam or nurses run. Before…