Python Practice Exercises In Leetcode Two