Array Leetcode Problems Sql