Capital One Interview Question

Simple interview but i failed to crack it.