hackerrank sql intermediate certification solutions customer spending