Capital One interview question

The hardest one was Case interview round