Page Allocation Problem Leetcode Solutions In C