Minimum number of swaps required such that a given substring consists of exactly K 1s
Given a binary string S of size N and three positive integers L, R, and K, the task is to find the minimum number of swaps required to such that the substring {S[L], .. S[R]} consists of exactly K 1s. If it is not possible to do so, then print "-1". Examples: Input: S = "110011111000101", L = 5, R =