Leetcode Weekly 494 Solution Discussion (finished)