Leetcode Weekly 496 Solution Discussion (finished)