First thing you need to watch solving these type of problems is,
see whether loop variables are independent or dependent
now as in this qsn we see inner loop is depending on outer loop variable i
Inner loop when i=1 in worst case can execute log1 times
inner loop when i=2 in worst case can execute log2 times
....similarly upto n
you will have series like this-log1+log2+log3+log4+log5+log6+.......logn=lo(1*2*3.......*n)=log(n!)
now you should know that log(n!)<=O(nlogn)
so your answer would be nlogn