How To Determine Complexity Of An Algorithm