Trying to understand Constant Time Complexity