Capital One interview question

4 Leetcode Medium questions on CodeSignal