To celebrate the start of the Winter, we have asked our Artificial Intelligence “AI-101” to generate a poem about the cold winter weather. The AI has generated the following poem which consists of a list of numbers! We believe the poem is in a compressed format. We found within the log of the AI a hash table (codebook) as appearing on the tablet below.
Use the above codebook and printed poem to reveal the title and 8 verses of this poem.
Implement a recursive algorithm to uncompress this poem using the given hash table by completing the code below.