Question Approach I tried several solutions. Unfortunately, no editorial today, haha. So I checked out one of the solutions dropped by a nice leetcoder!