title: Time complexity of simple string concatenation
body: <p>What is the cost of the following method. How do you calculate it?</p>
  
  <pre><code>public String joinWords(String[] words) {
      String sentence = "";
      for (String w : words) {
          sentence = sentence + word;
      }
      return sentence;
  }
  </code></pre>