Understanding Time Complexity: A Guide for Beginners