Easy Question Of Leetcode Problems Python