title: How to compare first and last index of a string in a list
body: <p>input :<code>['slx', 'poo', 'lan', 'ava', 'slur']</code>
  output:<code>['s', 'o', 'l', 'a', 'r']</code>
  how do you compare the first and last index of a string in a list?</p>
  <p>Thanks in advance!</p>