Time Complexity Of Python Functions