Function to print longest substring that appears at beginning of string and also at end in reverse order
def commonSubstring ( s ) : NEW_LINE INDENT n = len ( s ) NEW_LINE i = 0 NEW_LINE j = n - 1 NEW_LINE DEDENT