Checking if prefix + suffix == T
if ( prefix + suffix == T ) : NEW_LINE INDENT possible = True NEW_LINE break NEW_LINE DEDENT if ( possible ) : NEW_LINE return " YES " NEW_LINE else : NEW_LINE return " NO " NEW_LINE