Capital One interview question

The word problem.