Question 1: Sliding window question with drifting component that required another variable (sorry can't remember specifics, but most relevant problem was sliding window)
Question 2: https://leetcode.com/problems/sum-of-subarray-ranges/