Separate Black and White Balls

Separate Black and White Balls - Coding Problem | K5kC