educative.io think that this is log2(n!) because var increases for each value of n.
HOWEVER. Me and my associate think that because var is always < n there is no w