Pergunta de entrevista da empresa Capital One

Simple interview but i failed to crack it.