Capital One interview question

previous works