Neste desafio, você precisa executar as etapas inversas da Cifra de Rotação Iterativa. A decodificação é feita por meio de uma série de rotações de caracteres e substrings em uma string de entrada.
Crie uma função que receba uma string com a mensagem codificada eMessage e retorne uma mensagem decodificada.
Encoded Message = `10 hu fmo a,ys vi utie mr snehn rni tvte .ysushou teI fwea pmapi apfrok rei tnocsclet`
Decoded Message = `If you wish to make an apple pie from scratch, you must first invent the universe.`Veja os exemplos abaixo para entender melhor:
iterativeDeciph("12 ory ,auruiec i,i OtacsuF!ht orpsnpo")➞ "Oh, Fortuna, you capricious sprite!"
iterativeDeciph("6 im.T ei no .lLnicsan iluushted imouys blo") ➞ "Time is an illusion. Lunchtime doubly so."
iterativeDeciph("22 tareu oo iucnaTr dled oldthser.hg hiarm nhcn se rliyet oincoa") ➞ "There is nothing more atrociously cruel than an adored child."N/A