Minimum Number of Operations to Move All Balls to Each Box | Leetcode 1769