Capital One Interview Question

Plus One LeetCode problem