AMCAT Automata Fix Sample Question-5

Program 5

Palindrome

Write logical part for checking palindrome of string in given code.

Input: S = “abba”

Output: 1