Capital One Interview Question

The hardest one was Case interview round