Postgres Trigger Max Stack Problem Leetcode Solutions