title: Prolog List. Check if first and last element in list is similar
body: <p>Example:</p>
  
  <pre><code>firstlast([1,2,3,4,1]).
  true;
  
  firstlast([1,2,3,4]).
  false;
  
  firstlast([5,10,4,3]).
  false;
  
  exc...
  </code></pre>
  
  <p>The problem is im only allowed to use recursion with the predicate "firstlast". ?
  I have really tried to break this, but i cant seem to check / compare the last element with the first. </p>
  
  <p>Any hints ?</p>