title: How to check if an Array of strings is sorted in alphabetical order or not using Kotlin?
body: <p>I am given a list of strings and I need to see if they are in alphabetical order.</p>
  
  <p>I know I need to use a for loop and check the first character of each string but I don't know how to progress from there.</p>
  
  <pre><code>for (item in array)
       println(item[0])
  </code></pre>
  
  <p>For example <code>["adam", "ben", "chloe"]</code> should return <code>true</code>.</p>
  
  <p>And likewise for <code>["ben", "adam", "chloe"]</code> should return <code>false</code>.</p>