Pergunta de entrevista da empresa Capital One

Coding question might involve working with numbers in a list