title: How do I return a list of strings from a list of lists?
body: <h2>The homework question is the following...</h2>
  
  <p>(10 pts) Write a function explode that, given a list of tuples, (n x), creates a new list by inserting
  x into the list n times in place of (n x) (in other words, the inserted items should come in the same
  order as the original tuples when you create the new list). You can assume that n will always be at
  least 0.</p>
  
  <blockquote>
    <p>(explode ‘((2 "Hello"))) produces ->("Hello" "Hello")</p>
    
    <p>(explode ‘((2 "Hello") (3 "world"))) produces ->("Hello" "Hello"
    "world" "world" "world")</p>
  </blockquote>
  
  <hr>
  
  <p>A possible solution I have thought of so far was to have a loop that would keep track of what tuple the algorithm is currently working on and then inside of that loop have a function definition that would be called recursively to add the string to the return list. But I am not sure this will work because it seems like it would require the use of 'set!' which the professor said we are not allowed to use.</p>
  
  <p>I am not looking for a complete answer as this is a homework problem. I would just like to be pointed in the right direction on how to approach this problem, maybe with some sudo code.</p>
  
  <p>Thanks all!</p>