sql window functions practice questions leetcode