X interview question

write algorithm to Decrypt message