Capital One interview question

Coding questions via technical assessment