Capital One interview question

how to solve an encryption problem