Postgresql Split Array Leetcode Problems