Capital One interview question

4 leetcode easy and medium questions