Capital One Interview Question

Explain why you used that method to generate an answer.