Leetcode 856 Python Explanations Brief