title: How to determine the last character of a string in which it will be the first character of the next string
body: <p>How can I get the last letter of a string in which it will be the first letter of the next string.</p>
  
  <p>I know this has something to do with <code>charAt()</code> but I don't know how to do it with arrays</p>
  
  <p>Let's say we have an <strong>input</strong> like this <code>x = {"rojan", "yohan", "jamir", "nancy", "nene", "neels"}</code> </p>
  
  <p>The <strong>output</strong> will be <code>jamir, rojan, nancy, yohan, nene</code> </p>
  
  <p>The program will disregard if there were other character/letter that links to the previous character. </p>