The running time of your program is log(n) + log(n-1) + ... + log(1).
This is log(n!) (by repeated application of the log rule log(a) + log(b) = log(ab)).
log(n!) is Theta(n log n) see Is log(n!) = Θ(n·log(n))?
So your program runs in Theta(n log n) time.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…