Function returns true if s1 is suffix of s2
def isSuffix ( s1 , s2 ) : NEW_LINE INDENT n1 = len ( s1 ) ; NEW_LINE n2 = len ( s2 ) ; NEW_LINE if ( n1 > n2 ) : NEW_LINE INDENT return False ; NEW_LINE DEDENT for i in range ( n1 ) : NEW_LINE INDENT if ( s1 [ n1 - i - 1 ] != s2 [ n2 - i - 1 ] ) : NEW_LINE INDENT return False ; NEW_LINE DEDENT DEDENT return True ; NEW_LINE DEDENT