Function to find the minimum number of operations required to convert all the characters to 1 by flipping the substrings of size K
def minOperation ( St , K , N ) : NEW_LINE INDENT S = list ( St ) NEW_LINE DEDENT