hackerrank sql intermediate skills certification test solution