Page Allocation Problem Leetcode Solutions Two