Function to check if array can be split into K consecutive and non - overlapping subarrays of length M consisting of a single distinct element
def checkPattern ( arr , m , k , n ) : NEW_LINE INDENT count = 1 NEW_LINE t = 0 NEW_LINE DEDENT