@Mayankprakash
it is (log n) * (log n) but not log(log n)
why?
outer loop executes log n times
inner loop executes log n times for every outer loop ===> (log n) * ( log n)
it is asymptotically equivalent to
for( i=n; i>0 ; i=i/2 )
{
for ( j=1,j ≤ n; j=j*2)
{
}
}
Moreover, if you not giving explanation, add it as comment, not as answer.