sql basic skills certification test hackerrank solution