Capital One Interview Question

Coding question might involve working with numbers in a list