Given a binary array nums and an integer k, the task is to find the maximum number of consecutive 1's in the array if you are allowed to flip at most k 0's.
Click Run to execute sample tests.