Separate Black and White Balls

You are given a binary string s where '0' is a white ball and '1' is a black ball. In one operation, swap any two adjacent balls. Return the minimum swaps needed to group all black balls (1s) into a single contiguous block.

Examples
Input: "101"
Output: 1
Hints

Separate Black and White Balls

You are given a binary string s where '0' is a white ball and '1' is a black ball. In one operation, swap any two adjacent balls. Return the minimum swaps needed to group all black balls (1s) into a single contiguous block.