Capital One interview question

Coding question might involve working with numbers in a list