Questions On Calculating Time Complexity