sql intermediate hackerrank solution github