Mix up the colours a bit like a Rubick’s Cube and then manipulate the small balls from one hole to the next matching the ball colour to the appropriate window.
Manufacturer recommends unsuitable for children under 3 years due to small parts and small balls.