Leetcode Activity Selection Problem Algorithmia Democrat