Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 3 , 6 , 3 , 2 , 1 , 3 , 9 ] NEW_LINE K = 2 NEW_LINE M = 4 NEW_LINE N = len ( arr ) NEW_LINE count = countSubArrays ( arr , N , K , M ) NEW_LINE print ( count ) NEW_LINE DEDENT