Reverse the last two elements of a list in Prolog
<p>I am trying to write the following predicate in Prolog while <strong>not</strong> making use of <code>append/3</code>:</p>

<pre><code>lastTwoReversed(List, ListOf2)
</code></pre>

<p>which succeeds exactly when <code>ListOf2</code> contains the last and the second-to-last elements of <code>List</code> in that order (i.e. reversed).</p>

<p>However, I don't know where to start. Any help is appreciated.</p>