How to find the time complexity of the following code snippet
<p>What is the time complexity of the following code snippet and how to calculate it.</p>

<pre><code> function(int n){
        for(int i = 1 ; i&lt;=n ; i++){
            for(int j=1 ; j&lt;=n; j+=i){
                System.out.println("*");
        }
    }
</code></pre>