Leetcode Activity Selection Problem Algorithm For Linear Searching