Wix interview question

A function in a puzzle game. Each time the computer pulls out one cube as possible.