How To Find Time Complexity In Python