Leetcode Activity Selection Problem Hackerrank Practice Sql