Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT A = " aa " NEW_LINE B = " baaa " NEW_LINE N = len ( A ) NEW_LINE M = len ( B ) NEW_LINE print ( numberofways ( A , B , N , M ) ) NEW_LINE DEDENT