Leetcode 2869. Minimum Operations to Collect Elements | Hello Interview