Citadel Interview Question

Two Leetcode medium questions in 75 minutes