Company: Ibm_27oct
Difficulty: medium
Decode Numeric String A message made of letters and spaces was encoded in two steps: 1. Every character was replaced by its ASCII code, and the codes were written one after another with no separators. 2. The resulting string of digits was reversed. Only these characters can appear in the message, so only these codes can appear: A to Z : codes 65 to 90 a to z : codes 97 to 122 the space character: code 32 For example, the message HackerRank becomes the codes 72 97 99 107 101 114 82 97 110 107 , written together as 7297991071011148297110107 , and after reversal the encoded string is 7010117928411101701997927 . Given the encoded string, recover the original message. Implement the function decode(encoded) , which returns the decoded message. The provided harness reads the input and prints the returned string. Input Format A single line containing the string encoded , made only of the digits 0 to 9 . Output Format Print the decoded message on one line. Constraints 2 <= length of encoded