Leetcode 2558. Take Gifts From the Richest Pile | Hello Interview