Leetcode Weekly Contest 424 — Solution Discussion (finished)