Capital One interview question

see as above description ...