Canonical interview question

Two Leetcode type tests with a timer of 1h30 mins.