Company: Ibm_27oct
Difficulty: medium
Decode Numeric String Problem Description Decode a numeric string using ASCII values by following these steps: Reverse the given string of digits. Successively pick valid values from the string and convert them to their ASCII equivalents. Some values will have two digits, others three. Use these ASCII value ranges for decoding: A through Z: 65-90 a through z: 97-122 Space character: 32 Example (Illustrative) The string 'HACKERRANK' converts to ASCII values: H:72, A:97, C:99, K:107, E:101, R:114, R:82, A:97, N:110, K:107. This creates the ASCII string: 7297991071011148297110107. After reversing: 701011798241110107997927. To decode, reverse back and convert valid ASCII values to characters. Function Description Complete the function decode in the editor with the following parameter(s): string encoded : an encoded string Returns string : the original decoded string Examples Example 1: (Sample Case 0) Input: encoded = "23511015017823511211799118015623480161171141148" Output: Truth Always w