Capital One interview question

Solve the given business cases