[LeetCode] 1151. Minimum Swaps to Group All 1s Together
Given a binary array data, return the minimum number of swaps required to group all 1’s present in the array together in any place in the array. Example 1:Input: data = [1,0,1,0,1]Output: 1Explan