Allocate Minimum Pages Leetcode