Array Based Leetcode Problems Sql Practice