Calculate The Time Complexity Of An Algorithm