Hackerrank Intermediate Sql Questions Leetcode Problem