Capital One Interview Question

Case Interview was challenging