Capital One interview question

general Qs