Capital One interview question

some programming questions