This is a reverse-coding challenge. Create a function that outputs the correct array from the input. Use the following examples to crack the code.
decode("hello") ➞ [5, 2, 9, 9, 3]
decode("wonderful") ➞ [11, 3, 2, 1, 2, 6, 3, 9, 9]
decode("something challenging") ➞ [7, 3, 10, 2, 8, 5, 6, 2, 4, 5, 18, 5, 16, 9, 9, 2, 2, 4, 6, 2, 4]
Check Comments if you're stuck.