Leetcode Activity Selection Problem Algorithmic Game