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 number of adjacent swaps needed so that all white balls (0s) appear before all black balls (1s).

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 number of adjacent swaps needed so that all white balls (`0`s) appear before all black balls (`1`s).