Leetcode Activity Selection Problem Algorithm Definition Design