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