
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate through the characters in the key to construct a mapping to the English alphabet.
Make sure to check that the current character is not already in the mapping (only the first appearance is considered).
Map the characters in the message according to the constructed mapping.