Yahoo interview question

Cryptography