Capital One interview question

Explain why you used that method to generate an answer.