Company: Societe_Generale_7Oct
Difficulty: medium
Cyber Codex Decoding Problem Description In a futuristic world, secret agents use a Cyber Codex to encrypt mission codes. Each encrypted code consists of lowercase letters (a-z), digits (0-9), and unique special symbols, namely '&', '@', and '!'. Used for encoding complex patterns. Your task is to decode these encrypted messages. The encryption follows these rules: Character Mapping: Each lowercase letter is mapped to a unique lowercase letter in a shuffled alphabet provided as a "key string." This key string is a 26-character string where the Ith character of the key maps to the Ith letter of the English alphabet (e.g., if the key is "qwerty...", then 'a' maps to 'q', 'b' maps to 'w', etc.). Repetition Indicator (&): When the symbol '&' appears, it indicates that the next lowercase character should repeat as many times as specified by the digit immediately preceding it (from 0-9). Substring Swapper (@): A substring surrounded by '@' symbols is to be swapped with its reverse. For examp