Time complexity of given code
<p>What is the time complexity of this code:</p>

<pre><code>for(i=1;i&lt;=(n-1);i++)
{
    for(j=(i+1);j&lt;=n;j++)
    {
        T=a[i,j];

        a[i,j]=a[j,i];

        a[j,i]=T;
    }
}
</code></pre>
