Capital One interview question

Case questions mentioned above