Leetcode Problems Solution In Python What Is One Function