Bin Packing Problem Leetcode Sql