Problem statement: There is a container having horizontal size W and vertical size H. There are N rectangle items 1, 2, ..., N in which item i has horizonta