Capital One Interview Question

check the review, has questions