Postgres Split Array Leetcode