Capital One Interview Question

how to solve an encryption problem