<p>You are given the strings <code>key</code> and <code>message</code>, which represent a cipher key and a secret message, respectively. The steps to decode <code>message</code> are as follows:</p>
<ol>
<li>Use the <strong>first</strong> appearance of all 26 lowercase English letters in <code>key</code> as the <strong>order</strong> of the substitution table.</li>
<li>Align the substitution table with the regular English alphabet.</li>
<li>Each letter in <code>message</code> is then <strong>substituted</strong> using the table.</li>
<li>Spaces <code>''</code> are transformed to themselves.</li>
</ol>
<ul>
<li>For example, given <code>key = "<u><strong>hap</strong></u>p<u><strong>y</strong></u><u><strong>bo</strong></u>y"</code> (actual key would have <strong>at least one</strong> instance of each letter in the alphabet), we have the partial substitution table of (<code>'h' ->'a'</code>, <code>'a' ->'b'</code>, <code>'p' ->'c'</code>, <code>'y' ->'d'</code>, <code>'b' ->'e'</code>, <code>'o' ->'f'</code>).</li>
<strong>Input:</strong> key = "the quick brown fox jumps over the lazy dog", message = "vkbs bs t suepuv"
<strong>Output:</strong>"this is a secret"
<strong>Explanation:</strong> The diagram above shows the substitution table.
It is obtained by taking the first appearance of each letter in "<u><strong>the</strong></u><u><strong>quick</strong></u><u><strong>brown</strong></u><u><strong>f</strong></u>o<u><strong>x</strong></u><u><strong>j</strong></u>u<u><strong>mps</strong></u> o<u><strong>v</strong></u>er the <u><strong>lazy</strong></u><u><strong>d</strong></u>o<u><strong>g</strong></u>".
<li><code>key</code> consists of lowercase English letters and <code>''</code>.</li>
<li><code>key</code> contains every letter in the English alphabet (<code>'a'</code> to <code>'z'</code>) <strong>at least once</strong>.</li>