Capital One interview question

Case Interview had too many complexities.