Attempt to write a function with cubed log runtime complexity $O(\log^3 n)$
Your program is correct. Your could also iterate Math.Log(n)*Math.Log(n)*Math.Log(n) times. Not sure if that is considered cheating.