Smart Interview Basic Hackerrank Sql Intermediate Solution