sql window functions practice questions hackerrank