Capital One interview question

Basic coding questions