Solve this medium-difficulty problem using the sliding window technique to find the minimum flips needed