Box interview question

Online assessment that included 3 Leetcode medium problems