Capital One interview question

3 leetcode easy/medium questions for the technical interview