Postgresql Split Array Leetcode Question