Hackerrank Intermediate Sql Questions Leetcode 150