Calculate Time Complexity Of Code